package wenjian;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
public class Test1 {
    public static void main(String[] args) {
        String filePath="path/to/your/file 1.txt";
        try  (FileInputStream fis = new FileInputStream(new File(filePath))){
            byte[] buffer = new byte[1024];
            int bytesRead;
            while ((bytesRead = fis.read(buffer)) != -1) {
                String data = new String(buffer,0,bytesRead);
                System.out.print(data);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
